home *** CD-ROM | disk | FTP | other *** search
- #include "VCRplus.h"
-
- extern unsigned long start[480], leng[480] ;
-
- /* the 512-entry tables of starting time and pgm duration */
- void lookup(long i, unsigned long *outtime, unsigned long *outdur)
- {
- static long initializer = 0;
-
- long j, s;
-
- if((i >= 480) || (i < 0))
- SetDText(19, "\pIllegal table index!");
- else
- {
- *outtime = (start[i]) ;
- *outdur = (leng[i]) ;
- }
-
- if( (*outtime == INVALID) || (*outdur == INVALID) )
- {
- SetDText(19, "\pOops, I'm missing an entry!");
- *outtime = 0;
- *outdur = 0;
- }
- }
-